var domContainer=document.querySelector('.container');
domContainer.addEventListener('click', function(e){
   if('H2'===e.target.tagName){
    console.log(e.target.innerText);
   }
})

